package io.lhj.chapter02;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class ThreadName {

    public static void main(String[] args) {
        IntStream.range(0, 5).boxed().collect(Collectors.toList());
        IntStream.range(0, 5).boxed().map(i -> new Thread(
                () -> System.out.println(Thread.currentThread().getName()))
        ).forEach(Thread::start);
    }
}
